import { baseRequest } from '@/util/request'

const request = (url, ...arg) => baseRequest(`/user/${url}`, ...arg)

//示例以application/json格式传参
export default {
  // 会话统计
  getUserDetail(id) {
    return request(`detail/${id}`, {}, 'get')
  },
  getTokenUser(){
    return request(`getTokenUser`, {}, 'get')
  },
  outLogin(){
    return request(`outLogin`, {}, 'get')
  }
}
